
package com.ptu.spzx.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.ptu.spzx.domain.Delete.DeleteIds;
import com.ptu.spzx.domain.Knowledge.KnowledgePoint;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author YT
 * @since 2024-01-28
 */
public interface IKnowledgePointService extends IService<KnowledgePoint> {

    /**
     * 新增知识点
     * @param knowledgePoint
     */
    void addKnowledgePoint(KnowledgePoint knowledgePoint);

    /**
     * 更新知识点
     * @param knowledgePoint
     */
    void updateKnowledgePoint(KnowledgePoint knowledgePoint);

    /**
     * 批量删除知识点
     * @param deleteIds
     */
    void deleteKnowledgePointByIds(DeleteIds deleteIds);

    /**
     * 查询单条知识点
     * @param id
     * @return
     */
    KnowledgePoint QueryKnowledgePoint(Long id);

    /**
     * 根据课程批量查询知识点
     * @param belongCourseId
     * @return
     */
    PageInfo<KnowledgePoint> QueryKnowledgePointByBelongCourseIds(Long belongCourseId, Integer pageNum, Integer pageSize, String keyWord);


    PageInfo<KnowledgePoint> orderByKnowledgeUsed(Integer pageSize, Integer pageNum);
}

